//
//  FTSmartTypes.h
//  
// /* FTSmartTypes_h */
//  Created by wangsp on 2017/5/4.
//

/**
 智能套系设备相关联的枚举
 */
@import Foundation;

NS_ASSUME_NONNULL_BEGIN

/** 
 设备类型 `蒸箱``烤箱`..
 */
typedef NS_ENUM(NSInteger, DeviceType) {
    /**
     蒸箱
     */
    DeviceTypeSteamer = 1,
    /** 
     烤箱 
     */
    DeviceTypeOven,
    /** 
     微波炉
     */
    DeviceTypeMicrowaveOven,
    /**
     抽油烟机
     */
    DeviceTypeRangeHood,
    /**
     灶具
     */
    DeviceTypeCooker,
    /**
     消毒柜
     */
    DeviceTypeSterilizer,
    /**
     热水器
     */
    DeviceTypeWaterHeater,
    /**
     洗碗机
     */
    DeviceTypeDishWasher,
    /**
     净水器
     */
    DeviceTypeWaterPurifier,
    /**
     蒸微一体机
     */
    DeviceTypeSteamMicroMachine = 0X10,
    /**
     智慧网关
     */
    DeviceTypeInternetIKCC
};

/** 
 当前设备状态
 */
typedef NS_ENUM (NSUInteger, DeviceStutus) {
    /**
     离线
     */
    DeviceStutusOffLine = 0,
    /**
     在线
     */
    DeviceStutusOnLine = 1,
    /**
     关闭
     */
    DeviceStutusOff,
    /**
     待机
     */
    DeviceStutusSuspend,
    /**
     开机
     */
    DeviceStutusOn,
    /**
     正在工作
     */
    DeviceStutusWorking,
};

/**
 区分不同套系，相同类型设备
 */
typedef NS_ENUM(NSUInteger, DeviceSameModelType) {
    /** 
     Z1.i 套系设备
     */
    DeviceSameModelTypeZ1Device = 0,
    /** 
     光影设备
     */
    DeviceSameModelTypeShine,
    /** 
     C2.i 套系
     */
    DeviceSameModelTypeC2Device,
};

/**
 第三方来源平台定义

 - ThirdAccountSourceWeChat: 微信来源平台
 - ThirdAccountSourceQQ: QQ来源平台
 - ThirdAccountSourceWeibo: 微博来源平台
 - ThirdAccountSourceOther: 其他厂商来源平台
 */
typedef NS_ENUM(NSUInteger, ThirdAccountSource) {
    ThirdAccountSourceWeChat = 4,
    ThirdAccountSourceQQ = 5,
    ThirdAccountSourceWeibo = 6,
    ThirdAccountSourceOther = 10
};


/**
 设备控制读取预约设备
 */
typedef NS_ENUM(NSUInteger, CommandCode){
    /// 设备控制&状态查询
    CommandCodeQueryDeviceStatus            = 0x30, /// 读取设备的当前状态
    CommandCodeControlDevice                = 0x31, /// 控制设备
    CommandCodeDeviceActiveReportStatus     = 0x32, /// 主动上报设备状态
    CommandSmartCookStatus                  = 0x3a, /// 远程云端读取油烟机安卓端的达人秀智能菜谱运行状态
    CommandUpdateSterilizerAppointmentList  = 0x3c, /// 消毒柜预约列表更新
    CommandQuerySterilizerAppointmentList   = 0x3d, /// 消毒柜预约列表查询
    CommandUploadSterilizerAppointmentList  = 0x3e, /// 消毒柜预约列表上报
    //菜谱控制
    CommandCodeUpdateCookbookData           = 0x40,  /// WiFi模组更新/新增厨电本地菜谱数据（ID和DATA）
    CommandCodeDeleteCookbookData           = 0x41,  /// WiFi模组删除厨电菜谱（ID）
    CommandCodeStartLocalCookbook           = 0x42,  /// 播放本地菜谱（开始菜谱烹饪）
    
    CommandCodeStartRecordCookbook          = 0x50,  /// 开始录制菜谱
    CommandCodeStopRecordCookbook           = 0x51,  /// 结束录制菜谱
    CommandCodeUploadRecordCookbook         = 0x52,  /// 上传录制菜谱
    CommandCodeDownloadRecordCookbook       = 0x53,  /// 下载录制菜谱
    CommandCodeCancelRecordCookbook         = 0x54,  /// 取消录制菜谱
    CommandCodeStartCookerRecordCookbook    = 0x55,  /// 开始灶具录制菜谱
    CommandCodeComfirmCookerRecordCookbook  = 0x56,  /// 确认灶具录制菜谱
    CommandCodeComfirmCookerAddPrompt       = 0x57,  /// 添加标记点
};


/**
 本地菜谱播放类型

 - FTSmartCookbookTypeEasy: 简易菜谱
 - FTSmartCookbookTypeFool: 傻瓜菜谱
 - FTSmartCookbookTypeStart: 入门菜谱
 */
typedef NS_ENUM(NSInteger, FTSmartCookbookType) {
    /// 简易菜谱
    FTSmartCookbookTypeEasy = 1,
    /// 傻瓜菜谱
    FTSmartCookbookTypeFool,
    /// 入门菜谱
    FTSmartCookbookTypeStart,
};

NS_ASSUME_NONNULL_END
